﻿using SqlSugar;

namespace Zhp.SqlSugar.Trigger.Core
{
    public interface ITriggerExecute
    {
        public void Invoke<TEntity>(ISqlSugarClient db, TriggerEnum option, TEntity insertObj);

        public void InvokeRange<TEntity>(ISqlSugarClient db, TriggerEnum option, List<TEntity> insertObj);

        public Task InvokeAsync<TEntity>(ISqlSugarClient db, TriggerEnum option, TEntity insertObj);

        public Task InvokeRangeAsync<TEntity>(ISqlSugarClient db, TriggerEnum option, List<TEntity> insertObj);
    }
}
